import request from "@/utils/request";

// 查询发布日志列表
export function listSysPublishLog(query) {
  return request({
    url: "/biz/sysPublishLog/list",
    method: "get",
    params: query,
  });
}

// 查询发布日志详细
export function getSysPublishLog(id) {
  return request({
    url: "/biz/sysPublishLog/" + id,
    method: "get",
  });
}

// 新增发布日志
export function addSysPublishLog(data) {
  return request({
    url: "/biz/sysPublishLog",
    method: "post",
    data: data,
  });
}

// 修改发布日志
export function updateSysPublishLog(data) {
  return request({
    url: "/biz/sysPublishLog",
    method: "put",
    data: data,
  });
}

// 删除发布日志
export function delSysPublishLog(id) {
  return request({
    url: "/biz/sysPublishLog/" + id,
    method: "delete",
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/sysPublishLog/findMaxSort",
    method: "get",
  });
}
// 导出发布日志
export function exportSysPublishLog(query) {
  return request({
    url: "/biz/sysPublishLog/export",
    method: "get",
    params: query,
  });
}
// 查询几天内最新发布日志详细
export function findOneInDays(id) {
  return request({
    url: "/biz/sysPublishLog/findOneInDays",
    method: "get",
  });
}
